package com.itheima.dao;


import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);

    public void add(User menu);
    public Page<User> selectByCondition(String queryString);
    public long findCountByRole(Integer id);
    public void deleteById(Integer id);
    public void edit(User menu);
    public User findById(Integer id);

    void setUserAndRole(Map<String, Integer> map);

    Integer[] findRoleAndUser(Integer id);

    void deleteUserAndRole(Integer id);
}
